package com.aistar.pojoVO;

import java.io.Serializable;

public class ResultCase implements Serializable {
    /**
     * 返回结果集：0 ~ 8
     * 0 'Accepted' - 通过
     * 1 'Presentation Error' - 演示错误
     * 2 'Time Limit Exceeded' - 超出时间限制
     * 3 'Memory Limit Exceeded' - 超出内存限制
     * 4 'Wrong Answer' - 答案错误
     * 5 'Runtime Error' - 运行异常
     * 6 'Output Limit Exceeded' - 超出输出限制
     * 7 'Compile Error' - 编译错误
     * 8 'System Error' - 系统错误
     */
    private Integer status;
    private Long timeUsed;
    private Long memoryUsed;
    private String errorMessage;
    private static final long serialVersionUID = 1L;

    public ResultCase(){}
    public ResultCase(Integer status, Long timeUsed, Long memoryUsed, String errorMessage) {
        this.status = status;
        this.timeUsed = timeUsed;
        this.memoryUsed = memoryUsed;
        this.errorMessage = errorMessage;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getTimeUsed() {
        return timeUsed;
    }

    public void setTimeUsed(Long timeUsed) {
        this.timeUsed = timeUsed;
    }

    public Long getMemoryUsed() {
        return memoryUsed;
    }

    public void setMemoryUsed(Long memoryUsed) {
        this.memoryUsed = memoryUsed;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    @Override
    public String toString() {
        return "ResultCase{" +
                "status=" + status +
                ", timeUsed=" + timeUsed +
                ", memoryUsed=" + memoryUsed +
                ", errorMessage='" + errorMessage + '\'' +
                '}';
    }
}
